#ifndef LOGINUSER_H
#define LOGINUSER_H

#include <QObject>

class LoginUser : public QObject
{
    Q_OBJECT
public:
    explicit LoginUser(QObject *parent = nullptr);

    QString getName() const;
    void setName(const QString &value);

    QString getPasswd() const;
    void setPasswd(const QString &value);

    qint32 getLevel() const;
    void setLevel(const qint32 &value);

    void clear();
    bool checkEmpty();

    bool getIsUpdate() const;
    void setIsUpdate(bool value);

signals:

public slots:

private:
    QString name;
    QString passwd;
    qint32 level;
    bool isUpdate;
};

#endif // LOGINUSER_H
